<?php
/**
 * Created by PhpStorm.
 * User: 小蛮哼哼哼
 * Email: 243194993@qq.com
 * Date: 2021/12/31 0031
 * Time: 15:59
 * motto: 现在的努力是为了小时候吹过的牛逼！
 */

declare(strict_types=1);


namespace app\common\validate;

class Address extends Base
{
    protected $rule = [
        "openid" => "require",
        "realname" => "require",
        "mobile" => "require|mobile",
        'locatarea'  =>'require',
        "address"=>"require"
    ];
    protected $message = [
        "openid.require" => "系统内部错误",
        "realname.require" => "请输入联系人",
        "mobile.require" => "请输入手机号",
        "mobile.mobile" => "手机号格式错误",
        "locatarea.require" => "请选择地址",
        "address.require"=>"请输入地址"
    ];
    protected $scene = [
        "add" => ["openid",  "relname", "mobile","locatarea","address"]
    ];
}